package Damain;

import java.io.Serializable;
/*
* 根据数据库用户表单创建
* */
public class user implements Serializable {
    //主键
    private Integer id;
    //用户名
    private String username;
    //密码
    private String password;
    //昵称
    private String nickname;


    public user() {
    }

    public user(String username, String password, String nickname, Integer id) {
        this.username = username;
        this.password = password;
        this.nickname = nickname;
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
}